<?php
defined('BASEPATH') OR exit('No direct script access allowed');
class Home extends CI_Controller{
	private $web_config = 'config';
	public function __construct(){
		parent::__construct();
		@session_start();
		$this->web_config = $this->config->item('web');
		$this->load->library('user_agent');
	}

	public function index(){
		$this->load->view(THEME_PATH . '/home.php', $data);
	}

	public function product(){
		$_SESSION['web']['member']['member_id']=1;
		$product_list=$this->data->get_limit('ca_product','1=1','*','pro_id desc',0,12);
		$data=array(
			'product_list' => $product_list
		);
		$this->load->view(THEME_PATH . '/home.php', $data);
	}
}
